<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GOYO系统管理平台</title>
<link rel="stylesheet" type="text/css" href="<%=path %>/resources/css/login.css" />
<script src="/resources/js/jQuery.js" type="text/javascript"></script>
</head>
<body>
	<form action="<c:url value='/j_spring_security_check'/>" method="post">
		<div class="login">
			<div class="login_form">
				<div class="login_info">
				</div>
				<div class="form_info"  style="position: relative;margin-top: 180px;">
					<span class="formtip" style="color: red;position: absolute;top: -12px; left:70px;"><c:if test="${login_error == '1'}">用户名或密码错误！</c:if><c:if test="${login_error eq '2'}">验证码错误!</c:if></span>
					<div class="field">
						<label>用户名：</label>
						<input type="text" name="j_username" class="text" size="20">
					</div>
					<div class="field">
						<label>密　码：</label>
						<input type="password" name="j_password" class="text" size="20">
					</div>
					<div class="field" style="height: 30px;overflow: hidden;">
						<label>验证码：</label>
						<input type="text" class="text" size="10"  name='j_captcha' value='' style="width:120px;float:left;">
	                    <cite class="yzm" style="width:90px;height:30px;display:block; float:right;padding: 0;margin: 0 7px 0 0;overflow: hidden;">
	                    <img  id="captchaImg" onclick="refreshCaptcha()" style="border: 1px solid #c5c5c5;width:88px;height: 28px" src='<c:url value="/jcaptcha"/>' ></cite>
					</div>
					<div class="field">
						<label></label>
						<input type="submit" value="" class="button" style="margin-left:50px;_margin-left:48px" />
						<!-- <button  class="button" style="margin-left:50px;_margin-left:48px" onclick="javascript:window.location='main.html'"></button> -->
					</div>
				</div>
			</div>
		</div>
	</form>
</body>

<script type="text/javascript">  
function refreshCaptcha() {  
    $('#captchaImg').attr(  
            'src',  
            '<c:url value="/jcaptcha"/>' + '?' + Math  
                    .floor(Math.random() * 100)).fadeIn();  
}  
</script>  
</html>

